<template>
    <Module :detailData="detailData" @change-mode="changeMode" v-if="currentShow === 'module'"></Module>
    <Topology @change-mode="changeMode" v-else></Topology>
</template>
<script setup lang="ts">
import Module from './Module.vue';
import Topology from './Topology.vue';
import { type SysMetadataObject } from '@great/services';
defineProps<{
    detailData?: SysMetadataObject;
}>();
const currentShow = ref('module');

const changeMode = () => {
    if (currentShow.value === 'module') currentShow.value = 'topology';
    else currentShow.value = 'module';
};
</script>
<style scoped lang="scss"></style>
